import React, { Component } from 'react'

export class ChildrenMap extends Component {
    render() {
        console.log(this.props);
        // let {} = this.props
        return (
            <div>
                ChildrenMap
                {
                    this.props.children.map((child)=>{
                        console.log(child);
                        return <div> 
                            <p>{child.props.children[1].name}</p>
                            <p>{child.props.children[1].age}</p>
                        </div>
                    })
                }
            </div>
        )
    }
}

export default ChildrenMap
